module OrganizationJsonSerializer

  def self.entry_as_json organization
    organization.as_json.merge({requre_certificate_organs: Organization.find_requre_certificate_organ_by_organ(organization.id).map(&:name)})
  end
end